import httpRequest from '@/config/axios/httpRequest'
import {
  BpmDefinitionGetReq,
  BpmDefinitionGetResp,
  BpmDefinitionListResp,
  BpmDefinitionPageResp
} from '@/models/bpm/BpmDefinitionModel'
import bpmapi from '../bpmapi'

export const getProcessDefinition = async (params: BpmDefinitionGetReq) => {
  return await httpRequest.
  get<BpmDefinitionGetResp>(bpmapi.BpmDefinitionGet, { params })
}

export const getProcessDefinitionPage = async (params) => {
  return await httpRequest.
  get<BpmDefinitionPageResp>(bpmapi.BpmDefinitionPage, { params })
}

export const getProcessDefinitionList = async (params) => {
  return await httpRequest.
  get<BpmDefinitionListResp>(bpmapi.BpmDefinitionList, { params })
}
